#-------------------------------------------------------------------------------
# Name:        module1
# Purpose:
#
# Author:      John
#
# Created:     10/11/2008
# Copyright:   (c) John 2008
# Licence:     <your licence>
#-------------------------------------------------------------------------------
#!/usr/bin/env python


from google.appengine.ext import db
from google.appengine.api import users

class BlogL1(db.Model):
    title = db.StringProperty(required=True)
    intro = db.TextProperty(required=True)
    tags = db.StringProperty(required=True)
    content = db.TextProperty(required=True)
    date_time = db.DateTimeProperty(auto_now_add=True)
    visiable_lv = db.IntegerProperty(required=True)
    counter_visit = db.IntegerProperty()
    counter_comment = db.IntegerProperty()
    
class BlogL2(db.Model):
    pid = db.ReferenceProperty(BlogL1)
    content = db.StringProperty(required=True,multiline=True)
    date_time = db.DateTimeProperty(auto_now_add=True)
    username = db.StringProperty()

class Config(db.Model):
    type = db.IntegerProperty(required=True)
    content = db.TextProperty(required=True)
    date_time = db.DateTimeProperty(auto_now_add=True)
    
def main():
    pass

if __name__ == '__main__':
    main()